package io.adrainty.bolee.security.hystrix;

import io.adrainty.bolee.framework.commons.basic.ResponseCode;
import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.framework.commons.user.UserEntity;
import io.adrainty.bolee.framework.commons.utils.ResultDTOUtil;
import io.adrainty.bolee.security.feign.ICustomerFeign;
import io.adrainty.bolee.security.models.entity.CustomerEntity;
import org.springframework.stereotype.Component;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/5 上午12:16
 */

@Component
public class CustomerFeignHystrix implements ICustomerFeign {
    @Override
    public ResultDTO<UserEntity> usernameLogin(String username, String company) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<UserEntity> mobileLogin(String mobile, String company) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<UserEntity> wechatLogin(String openId, String company) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<UserEntity> registerUser(CustomerEntity customerVO) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<Boolean> resetPasswords(String customerId) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }

    @Override
    public ResultDTO<Boolean> updateRealName(String userId, String name) {
        return ResultDTOUtil.error(ResponseCode.INTERFACE_HYSTRIX);
    }
}
